<?php
class ProductModel extends Model {
	protected $_auto = array ( 
		array('createtime','getFormatTime',1,'function'), 
	);
	
	protected $_validate         =         array(
		array('productname','require','产品名称必须填写'),
		array('price','number','请填写正确的价格'),
		array('rebate','number','请填写正确的折扣'),	
	);	
}